﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Data;
using DocumentManagement.Models;
using System.IO;
using Microsoft.Win32;

namespace DocumentManagement.ViewsModels
{
  public  class ShowItemFileInViewsModel : ViewsModelBase
    {
        private QSHCEntities1 _entityModels;
        public QSHCEntities1 EntityModels

        {
            get { return _entityModels; }
            set
            {
                if (_entityModels != value)
                {
                    _entityModels = value;
                    OnPropertyChanged("EntityModels");
                }
            }
        }
     

        private Receive _myReceive;
        public Receive MyReceive
        {
            get { return _myReceive; }
            set
            {
                if (_myReceive != value)
                {
                    _myReceive = value;
                    OnPropertyChanged("MyReceive");
                }
            }
        }
        private ReceiveAttachedFile _selectedAttachFile;
        public ReceiveAttachedFile SelectedAttachFile
        {
            get { return _selectedAttachFile; }
            set
            {
                if (_selectedAttachFile != value)
                {
                    _selectedAttachFile = value;
                    OnPropertyChanged("SelectedAttachFile");
                }
            }
        }

    


        public ShowItemFileInViewsModel()
        {

      

            if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
            {
                EntityModels = new QSHCEntities1();
            


            
            }


        }

    
    }
}
